# -*- coding: UTF-8 -*- #
"""
-------真正的勇士， 敢于直面惨淡的Warning、 敢于正视淋漓的Error-----
@author : 贾鹏博
@file : contact_info.py
@time : 2022/6/16 22:35
"""
from faker import Faker
from apptest.QiYeWeiXin_PO.utils.Logger import *


class ContactInfo:

    @classmethod
    def get_name(cls):
        name = Faker(locale='zh_CN').name()
        logger.info(f"生成的姓名是{name}")
        return name

    @classmethod
    def get_phone(cls):
        phone = Faker(locale='zh_CN').phone()
        logger.info(f"生成的电话号码是{phone}")
        return phone
